-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(cppcheck-all, cppcheck-differential): add cppcheck #7262
Conversation
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
@veqcc @TakaHoribe Hi, would you review this PR? |
@kminoda My first question is, are all the features listed in If you are willing to make it mandatory as soon as possible, I think we should choose the features more carefully. |
@veqcc Hi, thank you for the comment!
The idea behind this is to suppress all (and only) the errors in the latest Autoware Universe so that we can make the CI mandatory as soon as this PR is merged. The list contains all the warning items in the latest Autoware Universe, so at least we can avoid an unexpected additional warning from cppcheck. (BTW the only risk I can see is the case when cppcheck raises false-positive errors. However, we can address this risk by either adding it in |
@mitsudome-r Hi, I would like to make this cppcheck-differential required after this PR is merged if you don't see any concerns. Let me know if you have any comments. Thanks! |
I was misunderstanding in an opposite way, thanks!
Static analysis tools are always incomplete. I will approve it later. |
Signed-off-by: kminoda <[email protected]>
Signed-off-by: kminoda <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea behind this is to suppress all (and only) the errors in the latest Autoware Universe so that we can make the CI mandatory as soon as this PR is merged.
This sounds reasonable to me. I approve this, but please check one question below.
…tion#7262) * ci: add cppcheck Signed-off-by: kminoda <[email protected]> * add more suppression Signed-off-by: kminoda <[email protected]> * update cppcheck version Signed-off-by: kminoda <[email protected]> * update suppressions list Signed-off-by: kminoda <[email protected]> * add two workflows Signed-off-by: kminoda <[email protected]> * change name Signed-off-by: kminoda <[email protected]> * change timing of all ci Signed-off-by: kminoda <[email protected]> * update Signed-off-by: kminoda <[email protected]> * update Signed-off-by: kminoda <[email protected]> * update Signed-off-by: kminoda <[email protected]> * fix Signed-off-by: kminoda <[email protected]> * update name Signed-off-by: kminoda <[email protected]> * fix mistake Signed-off-by: kminoda <[email protected]> * add echo in diff Signed-off-by: kminoda <[email protected]> * update regex Signed-off-by: kminoda <[email protected]> * add statistics for cppcheck-all Signed-off-by: kminoda <[email protected]> * avoid checking cppcheck dir Signed-off-by: kminoda <[email protected]> * error-exit Signed-off-by: kminoda <[email protected]> * dummy test Signed-off-by: kminoda <[email protected]> * upload file even if it fails Signed-off-by: kminoda <[email protected]> * fix bug Signed-off-by: kminoda <[email protected]> * revert unnecessary commit Signed-off-by: kminoda <[email protected]> * minor fix Signed-off-by: kminoda <[email protected]> * dummy test Signed-off-by: kminoda <[email protected]> * dummy test Signed-off-by: kminoda <[email protected]> * modify to show cppcheck result even when failure Signed-off-by: kminoda <[email protected]> * finalize PR Signed-off-by: kminoda <[email protected]> * fix pre-commit Signed-off-by: kminoda <[email protected]> * fix pre-commit Signed-off-by: kminoda <[email protected]> --------- Signed-off-by: kminoda <[email protected]>
* ci: add cppcheck Signed-off-by: kminoda <[email protected]> * add more suppression Signed-off-by: kminoda <[email protected]> * update cppcheck version Signed-off-by: kminoda <[email protected]> * update suppressions list Signed-off-by: kminoda <[email protected]> * add two workflows Signed-off-by: kminoda <[email protected]> * change name Signed-off-by: kminoda <[email protected]> * change timing of all ci Signed-off-by: kminoda <[email protected]> * update Signed-off-by: kminoda <[email protected]> * update Signed-off-by: kminoda <[email protected]> * update Signed-off-by: kminoda <[email protected]> * fix Signed-off-by: kminoda <[email protected]> * update name Signed-off-by: kminoda <[email protected]> * fix mistake Signed-off-by: kminoda <[email protected]> * add echo in diff Signed-off-by: kminoda <[email protected]> * update regex Signed-off-by: kminoda <[email protected]> * add statistics for cppcheck-all Signed-off-by: kminoda <[email protected]> * avoid checking cppcheck dir Signed-off-by: kminoda <[email protected]> * error-exit Signed-off-by: kminoda <[email protected]> * dummy test Signed-off-by: kminoda <[email protected]> * upload file even if it fails Signed-off-by: kminoda <[email protected]> * fix bug Signed-off-by: kminoda <[email protected]> * revert unnecessary commit Signed-off-by: kminoda <[email protected]> * minor fix Signed-off-by: kminoda <[email protected]> * dummy test Signed-off-by: kminoda <[email protected]> * dummy test Signed-off-by: kminoda <[email protected]> * modify to show cppcheck result even when failure Signed-off-by: kminoda <[email protected]> * finalize PR Signed-off-by: kminoda <[email protected]> * fix pre-commit Signed-off-by: kminoda <[email protected]> * fix pre-commit Signed-off-by: kminoda <[email protected]> --------- Signed-off-by: kminoda <[email protected]>
Description
Add cppcheck for GitHub Actions
Future improvements would include
Related links
Tests performed
See the results of GitHub Actions
Notes for reviewers
We would eventually like to apply most of the important cppcheck items, but for now I created a huge
.cppcheck_suppression
file to suppress all the errors.Interface changes
None
ROS Topic Changes
None
ROS Parameter Changes
None
Effects on system behavior
None
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.